import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import category from './modules/category.js'

import staff from './modules/staff.js'
import customer from './modules/customer_management.js'
import log from './modules/log.js'

import product from './modules/product.js'
import system from './modules/system.js'
import waiter from './modules/waiter.js'
import audit from './modules/audit.js'

import audit_account from './modules/audit_account.js'
import audit_name from './modules/audit_name.js'
import audit_order from './modules/audit_order.js'

import news_classification from './modules/news_classification.js'
import news_information from './modules/news_information.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    category,
    staff,
    customer,
    log,
    product,
    customer,
    system,
    waiter,
    audit,
    audit_account,
    audit_name,
    audit_order,
    audit,
    news_classification,
    news_information

  },
  getters
})

export default store